import { history } from 'umi';

export default function access(initialState) {
  const { currentUser } = initialState ?? {};
  console.log(initialState);
  if (currentUser?.username == 'wangs') {
    history.replace('/403');
  }

  return {
    canAdmin: false,
  };
}
